package com.learner.ucenter.service;

import com.learner.pojo.user.UserSetting;

/**
* @author ice2020x
* @Date: 2023/2/3
* @Description: 操作用户设置
**/
public interface UserSettingService  {


    /**
     * 根据用户id获取用户设置
     *
     * @param userId 用户id
     * @return UserSetting
     */
    UserSetting findByUserId(String userId);


    /**
     * 存储用户设置
     *
     * @param setting setting
     * @return UserSetting
     */
    UserSetting save(UserSetting setting);

    /**
     * 修改用户设置
     * @param userSetting userSetting
     * @return userSetting userSetting
     */
    UserSetting update(UserSetting userSetting);
}